package com.pagoda.nerp.trade.service;

import com.pagoda.nerp.trade.common.PageListResult;
import com.pagoda.nerp.trade.common.exception.UpdateException;
import com.pagoda.nerp.trade.entity.MdVendor;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

/**
 * 供应商服务层接口
 *
 * Created by Jungle on 2016/12/14.
 */
public interface MdVendorService {

    public MdVendor selectByCondition(Integer accountId);

    public int insert(MdVendor mdVendor);

	public Map<String, Object> register(String vendorName, String customerKind,
			String contacts, String phoneNumber, String verifyCode,
			String organizationCode, String cardNo, String openId)
			throws Exception;

    PageListResult<MdVendor> listAllMdVendor(Map con);

    MdVendor findMdVendorByCon(Map con);

    int checkVendor(Map con) throws UpdateException;

    int updateMdVendorByCon(Map con) throws UpdateException;

    int updateById(MdVendor mdVendor);

}
